@charset "UTF-8";

$asideWith: 180px !default;

@for $i from 1 through 10 {
  .height-#{$i*10} { height: 10px * $i; }
}

@import "mixin";
@import "loading";
@import "hint";
@import "form";
@import "tree";
@import "table";

ul, ol {
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: none;
}

button {
  outline: none;
  &:focus {
    outline: none;
  }
}

body {
  background-color: #f8f8f8;
  color: #666;
  font-family: "Helvetica Neue","Luxi Sans","DejaVu Sans",Tahoma,"Hiragino Sans GB",STHeiti,"Microsoft YaHei";
}

.va-m {
  vertical-align: middle;
}

.btn {
  border-radius: 2px;
}

.btn-xs {
  padding: 2px 5px;
}

.pagination-group {
  margin-top: 20px;
  overflow: hidden;
}

.top-wrapper {
  position: fixed;
  width: 100%;
  background-color: #3787dd;
  z-index: 1000;
  .brand {
    float: left;
    width: $asideWith;
    background-color: #1c6ec7;
    height: 50px;
    line-height: 50px;
    .logo {
      display: block;
      color: #fff;
      height: 32px;
      width: 120px;
      margin: 8px 0 0 20px;
      background: url("../images/logo.png") no-repeat 0 0;
      //background-size: cover;
    }
  }
  .head-wrapper {
    position: absolute;
    left: $asideWith;
    right: 0;
    top: 0;
    background-color: #3787DD;
    .head-name {
      float: left;
      color: #c3dbf5;
      font-size: 1.5em;
      height: 50px;
      line-height: 50px;
      strong {
        display: block;
        padding: 0 30px;
        border-right: 1px solid #367cc9;
      }
    }
  }
}

.wrapper-inner {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom:0;
}

.aside-wrapper {
  position: fixed;
  width: $asideWith;
  top: 50px;
  bottom: 0;
  left: 0;
  transition: .3s all ease;
  user-select: none;
}

.main-wrapper {
  position: absolute;
  left: $asideWith;
  right: 0;
  bottom: 0;
  height: 100%;
  transition: .15s all ease;
}

.view-wrapper {
  position: absolute;
  transition: .15s all ease;
  overflow: hidden;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
}

.view-container {
  position: absolute;
  left: $asideWith;
  right:0;
  top:0;
  bottom: 0;
  overflow-y: auto;
  transition: all 0.2s ease;
  > .view-inner {
    padding: 20px;
  }
}

.view-body {
  //background: red;
  overflow: hidden;
  padding: 0 35px 35px;
  @extend %formControl;
}

.view-cont {
  th,td{
    text-align: center
  }
  .fa{
    margin-right: 5px;
  }
  .view-cont-hd {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    h2 {
      font-size: 20px;
    }
    .btn-back {
      float: left;
      margin-top: 18px;
    }
    .line {
      width: 2px;
      height: 14px;
      margin: 5px 10px 0 0;
      background-color: #367cc9;
    }
    .breadcrumb {
      float: right;
      color: #666;
      background: none;
      margin: 15px 0 0;
      a,span {
        color: #a8a8a8;
      }
      li:last-child {
        > span {
          color: #777;
        }
      }
    }
  }
  .row-pane {
    margin-top: 20px;
  }
}

.view-cont-bd {
  .handle-bar {
    .form-control {
      width: 250px;
    }
    .form-group {
      margin-bottom: 0;
    }
    .hint {
      visibility: hidden;
    }
    .show {
      visibility: visible;
    }
  }
  .breadcrumb {
    margin-top: 10px;
    margin-bottom: -5px;
    background-color: #fff;
  }
}

.sidebar-collapsed {
  .aside-wrapper {
    width: 50px;
  }
  .main-wrapper {
    left: 50px;
  }
}

.sub-menu-collapsed {
  .secondary-wrapper {
    width: 0;
  }
  .view-container {
    left: 0;
  }
}

.system-form-cont {
  @extend %formControl;
  .btn {
    .fa {
      margin-right: 3px;
    }
  }
}

.modal-dialog {

}

.modal-content {
  @extend %formControl;
  .tab-pane {
    padding: 10px  0;
  }
  .table {
    td,
    th {
      text-align: center;
    }
  }
}

.modal-400 {
  width: 400px;
  margin: 80px auto 0;
}

.modal-md {
  margin: 60px auto 0;
}

.empty {
  color: #999;
}

.ellipsis {
  @include ellipsis();
}